<?php
require('../../../lib/base.php');
$base=new base('web');
$mail=strtolower($base->get('mail',true));
$member=$base->model('member');
if(preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix",$mail)!=1){
	echo "<span class=\"redd\">[$mail],不是一个正确的邮箱.</span>";
}else{
	if(count($member->GMember(array('where'=>array('mail ='=>$mail))))>0){
		echo "<span class=\"redd\">×[$mail]已经被人使用</span>";
	}else{
		echo "<span class=\"font_bule14\"> √,[$mail]可以使用.</span>";
	}
}
?>